<?php
/**
 * @package      OWNServices
 * @subpackage   Admin
 *
 * @author       Sanawin Tinsuwan
 * @copyright    Copyright (C) 20014 Sanawin Tinsuwan. All rights reserved.
 * @license      http://www.gnu.org/licenses/gpl.html GNU/GPL, see LICENSE.txt
 */

defined('_JEXEC') or die();


// Access check
if (!JFactory::getUser()->authorise('core.manage', 'com_pfprojects')) {
    return JError::raiseWarning(403, JText::_('JERROR_ALERTNOAUTHOR'));
}

// Include dependencies
jimport('joomla.application.component.controller');
jimport('joomla.application.component.helper');

// Register backend helper class
JLoader::register('OWNServicesHelper', JPATH_ADMINISTRATOR . '/components/com_ownservices/helpers/ownservices.php');

$controller = JControllerLegacy::getInstance('OWNServices');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();